package com.java.yz.day05.homework;
/*
    数组查找操作，一个长度为10的字符串数组，一个元素放一个单词，
    判断是否包含这个单词，有就yes，没有就no
 */
import java.util.Scanner;
public class Text01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个单词：");
        String world = sc.next();
        String[] array={"python","linux","mysql","java","maven","Jdbc","redis","clickhouse","hadoop","hive"};
        boolean flag=true;
        for (int i = 0; i < array.length; i++) {
            if (array[i].equals(world)){
                System.out.println("yes");
                flag=false;
                break;
            }
        }
        if (flag){
            System.out.println("no");
        }
    }
}
